﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="sidebar.aspx.cs" Inherits="TRPOP.CRM.Web.sidebar" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>左侧树形结构</title>
    <script type="text/javascript" src="../Scripts/jquery.js"></script>
    <script type="text/javascript" src="../Scripts/menu.js"></script>
    <script type="text/javascript" src="../Scripts/xtree/xtree.js"></script>
    <script type="text/javascript" src="../Scripts/xtree/xmlextras.js"></script>
    <script type="text/javascript" src="../Scripts/xtree/xloadtree.js"></script>
    <script type="text/javascript">
        var _BaseImgURL = "/App_Themes/Blue/";
        webFXTreeConfig.rootIcon = _BaseImgURL + "images/xp/folder.png";
        webFXTreeConfig.openRootIcon = _BaseImgURL + "images/xp/openfolder.png";
        webFXTreeConfig.folderIcon = _BaseImgURL + "images/xp/folder.png";
        webFXTreeConfig.openFolderIcon = _BaseImgURL + "images/xp/openfolder.png";
        webFXTreeConfig.fileIcon = _BaseImgURL + "images/xp/file.png";
        webFXTreeConfig.lMinusIcon = _BaseImgURL + "images/xp/Lminus.png";
        webFXTreeConfig.lPlusIcon = _BaseImgURL + "images/xp/Lplus.png";
        webFXTreeConfig.tMinusIcon = _BaseImgURL + "images/xp/Tminus.png";
        webFXTreeConfig.tPlusIcon = _BaseImgURL + "images/xp/Tplus.png";
        webFXTreeConfig.iIcon = _BaseImgURL + "images/xp/I.png";
        webFXTreeConfig.lIcon = _BaseImgURL + "images/xp/L.png";
        webFXTreeConfig.tIcon = _BaseImgURL + "images/xp/T.png";
        var _BaseFileImgURL = _BaseImgURL + "images/xp/file.png";
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="sideBar">
        <h2 class="sideTit">
            <span class="none">导航菜单</span></h2>
        <div class="sideCont">
            <asp:Literal ID="lbTemplate" runat="server" Visible="false">
                <div class="bc menuBox"><h3 class="pr f12 tc c_white mt6 tit"><a href="#">$$title$$</a></h3>
                <div class="pb8 navMenu" style="display: none;">
                    <script type="text/javascript">
                        $$JS$$
                    </script>
                </div>
            </div>
            </asp:Literal>
            <div class="bc menuBox">
                <h3 class="pr f12 tc c_white mt6 tit">
                    <a href="#">我的工作</a></h3>
                <div class="pb8 navMenu" style="display: none;">
                    <script type="text/javascript">

                        var tree = new WebFXTree("个人管理", "", "", "");
                        tree.add(new WebFXTreeItem("我的客户", 'Remind/MyCompany_list.aspx', "iframeList", 10, "", _BaseFileImgURL));
                        tree.add(new WebFXTreeItem("密码修改", 'BaseManage/PersonalInfo_save.aspx', "iframeList", 10, "", _BaseFileImgURL));
                        document.write(tree);

                        var tree = new WebFXTree("待完成的工作", "", "", "");
                        <asp:Literal runat="server" id="ltallRemind" >
                        tree.add(new WebFXTreeItem("{0}", "Remind/MyRemind_list.aspx?id={1}", "iframeList", 10, "", _BaseFileImgURL));
                        </asp:Literal>
                        document.write(tree);

                        var tree = new WebFXTree("我的跟踪日志", "", "", "");
                        tree.add(new WebFXTreeItem("我的跟踪日志", "Remind/WorkingLog_list.aspx", "iframeList", 10, "", _BaseFileImgURL));
                        tree.add(new WebFXTreeItem("领导批注", "Remind/WorkComment_list.aspx?cid=1", "iframeList", 10, "", _BaseFileImgURL));
                        document.write(tree);

                        var tree = new WebFXTree("设置我的工作计划", "", "", "");
                        tree.add(new WebFXTreeItem("所有工作计划", "Remind/MyRemind_alllist.aspx", "iframeList", 10, "", _BaseFileImgURL));
                        tree.add(new WebFXTreeItem("新增工作计划", "Remind/MyRemind_save.aspx", "iframeList", 10, "", _BaseFileImgURL));
                        document.write(tree);
                        
                        var tree = new WebFXTree("销售排行榜", "", "", "");
                        tree.add(new WebFXTreeItem("今日排行榜", "Employee/SaleTopToday.aspx", "iframeList", 10, "", _BaseFileImgURL));
                        document.write(tree);

                    </script>
                </div>
            </div>
            <div class="bc menuBox hidden">
                <h3 class="pr f12 tc c_white mt6 tit">
                    <a href="#">个人管理</a></h3>
                <div class="pb8 navMenu" style="display: none;">
                    <script type="text/javascript">
                        var tree = new WebFXTree("个人管理", "", "", "");
                        tree.add(new WebFXTreeItem("我的客户", 'Remind/MyCompany_list.aspx', "iframeList", 10, "", _BaseFileImgURL));
                        tree.add(new WebFXTreeItem("密码修改", 'BaseManage/PersonalInfo_save.aspx', "iframeList", 10, "", _BaseFileImgURL));
                        document.write(tree);
                    </script>
                </div>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
